﻿@model Hostal.Bussines.Entities.Proveedore

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Proveedore</legend>

        <div class="editor-label" style="display:none">
            @Html.LabelFor(model => model.IdProveedor)
        </div>
        <div class="editor-field" style="display:none">
            @Html.EditorFor(model => model.IdProveedor)
            @Html.ValidationMessageFor(model => model.IdProveedor)
        </div>

        <div class="editor-label">
            <b>RUC:</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RUC)
            @Html.ValidationMessageFor(model => model.RUC)
        </div>

        <div class="editor-label">
            <b>RAZON SOCIAL:</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RazonSocial)
            @Html.ValidationMessageFor(model => model.RazonSocial)
        </div>

        <div class="editor-label">
            <b>DIRECCION:</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Direccion)
            @Html.ValidationMessageFor(model => model.Direccion)
        </div>

        <div class="editor-label">
            <b>TELEFONO:</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefono)
            @Html.ValidationMessageFor(model => model.Telefono)
        </div>

        <div class="editor-label">
           <b>DESCRIPCION:</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descripcion)
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
